﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>驰骋BPM</title>
    <!-- <link href="../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />-->
    <link href="../../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/bootstrap/css/font-awesome.css" rel="stylesheet">
    <link href="../../Style/skin/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../Style/skin/font/iconfont.css" rel="stylesheet" type="text/css" />
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close">
                <i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <strong class="font-bold">
                                            <img src="../../../DataUser/ICON/logoHome.png" />
                                        </strong>
                                    </span>
                                </span>
                            </a>
                        </div>
                        <!-- 驰骋 -->
                        <div class="logo-element lang" data-key="chicheng"></div>
                    </li>
                    <!-- 菜单列表 -->
                    <div id="list"></div>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1" style="overflow:hidden">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li id="LI_GenerBill"><a href="../Demo/index.htm" class="J_menuItem"><i class="icon iconfont icon-add"></i><span class="lang" data-key="GenerBill">开发手册</span></a></li>
                        <li id="LI_GenerBill"><a href="../GenerBill.htm" class="J_menuItem"><i class="icon iconfont icon-daiban"></i><span class="lang" data-key="GenerBill">工作台</span></a></li>
                        <li id="LI_Bill_Start"><a href="../Start.htm" class="J_menuItem"><i class="icon iconfont icon-faqi"></i><span class="lang" data-key="danju1">单据</span></a></li>
                        <!--<li><a href="../Setting/ChangePassword.htm" class="J_menuItem"><i class="icon iconfont icon-daiban"></i><span class="lang" data-key="UpdatePass">密码修改</span><label class="label label-warning pull-right"  id="Label2" ></label></a></li>-->
                        <li><a href='../../Setting/Default.htm' class="J_menuItem lang-setting"><i class="icon iconfont icon-wo"></i><label id="UserName" /></a></li>
                        <li>
                            <a href="Login.htm?DoType=Out"><i class="icon iconfont icon-tuichu fred fz18"></i><span class="lang" data-key="tuichu">退出</span></a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe id="J_iframe" width="100%" height="100%" src="../Start.htm" frameborder="0" data-id="../Start.htm" seamless></iframe>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>

    <script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../Scripts/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../Style/skin/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script type="text/javascript" src="../../Style/skin/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="../../Style/skin/js/appnew.js?v=4.1.0"></script>
    <script type="text/javascript" src="../../Style/skin/js/index.js"></script>
    <script src="../../Scripts/QueryString.js" type="text/javascript"></script>
    <!-- 引用通用的js文件. -->
    <script type="text/javascript" src="../../Scripts/config.js?v=1.0"></script>
    <script type="text/javascript" src="../../Comm/Gener.js?v=1.0"></script>
    <script type="text/javascript" language="javascript">
        //页面启动函数.
        $(function () {
            //树目录.
            var dirs = new Entities("BP.Sys.FrmTrees");
            dirs.RetrieveAll();

            //表单.
            var frms = new Entities("BP.Sys.MapDatas");
            frms.RetrieveAll();

            var html = "";
            for (var i = 0; i < dirs.length; i++) {
                var dir = dirs[i];
                if (dir.ParentNo == '0')
                    continue;
                html += "<li >";
                html += "<a class='nav nav-header' style='color:white; font-weight:bolder;' href='#'>";
                html += "<i class='icon iconfont icon-huaban'></i>";
                html += "<span class='nav-label lang' data-key='jcgn'>" + dir.Name + "</span>";
                html += "<span class='fa arrow'></span>";
                html += "</a>";

                html += "<ul class='nav nav - second - level in list-group'>";
                for (var idx = 0; idx < frms.length; idx++) {
                    var frm = frms[idx];
                    if (frm.FK_FormTree != dir.No)
                        continue;
                    html += "<li style='height:25px;'><a style='padding-top:0px;' class='J_menuItem ' href='../SearchDict.htm?FrmID=" + frm.No + "&FK_MapData=" + frm.No + "'><i class='icon iconfont icon-faqi'></i><span class='lang' data-key='lcfq'>" + frm.Name + "</span></a></li>";
                }
                html += "</ul>";
                html += "</li>";
            }
            $("#list").append(html);
            var handler = new HttpHandler("BP.WF.HttpHandler.WF_AppClassic");
            var data = handler.DoMethodReturnString("Home_Init");

            if (data.indexOf('err@') == 0) {
                alert(data);
                return;
            }
            data = JSON.parse(data);
            //调用公共类库的方法:执行批量主表赋值
            GenerFullAllCtrlsVal(data);

            var flowNo = GetQueryString("FK_Flow");

            if (flowNo != null) {
                window.open('../MyFlow.htm?FK_Flow=' + flowNo);
                return;
            }
            return;
        });
    </script>
    <script src="../../Style/skin/js/appnew.js"></script>
    <script src="../../Style/skin/js/index.js"></script>
</body>
</html>
